package com.stark.wechat.service.menu.model;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 创建个性化菜单请求体
 *
 * @author <a href="mengbin@eastsoft.com.cn">Ben</a>
 * @version 1.0.0
 * @see <a href="https://developers.weixin.qq.com/doc/service/api/custommenu/api_addconditionalmenu.html#%E8%AF%B7%E6%B1%82%E4%BD%93-Request-Payload">自定义菜单 / 创建个性化菜单</a>
 * @since 2025/8/6
 */
@Data
@Accessors(chain = true)
public class AddConditionalMenuRequestPayload implements Serializable {

    private static final long serialVersionUID = 6288873265796742414L;

    /**
     * 一级菜单数组(1-3个)
     */
    private List<Button> button = new ArrayList<>();

    /**
     * 菜单匹配规则(至少一个非空字段)
     */
    private Matchrule matchrule;

}
